package com.read.dubbo_server_demo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.read.dubbo_server_demo.dao.UserMapper;
import com.read.dubbo_server_demo.entity.User;
import com.read.dubbo_server_demo.service.UserService;
@Component
@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserMapper userMapper;
	public int save(User user) {
		// TODO Auto-generated method stub
		return userMapper.save(user);
	}
	public User get(String id) {
		// TODO Auto-generated method stub
		return userMapper.get(id);
	}

}
